<?php
if (!defined('BASEPATH')) {
	exit('No direct script access allowed');
}

class Penyakit extends CI_Controller {

	public function __construct() {
		parent::__construct();
		$this->load->library('parser');
		$this->load->model('m_penyakit');
	}

	public function ritl() {
		//tetapkan meta deskripsi
		$this->parser->set_desc('Website Jamkesda Kabupaten Penajam Paser Utara');
		//Memanggil nilai dari form pencarian
		$tgl_awal 				= $this->input->post('tgl_awal');
		$tgl_akhir				= $this->input->post('tgl_akhir');
		$ppk							= $this->input->post('ppk');
		$data['results']	= $this->m_penyakit->ritl();
		// Load the template from the views directory
		$this->parser->theme('front','penyakit/ritl', $data);
	}

	public function rjtl() {
		//tetapkan meta deskripsi
		$this->parser->set_desc('Website Jamkesda Kabupaten Penajam Paser Utara');
		//Memanggil nilai dari form pencarian
		$tgl_awal 				= $this->input->post('tgl_awal');
		$tgl_akhir				= $this->input->post('tgl_akhir');
		$ppk							= $this->input->post('ppk');
		$data['results']	= $this->m_penyakit->rjtl();

		// Load the template from the views directory
		$this->parser->theme('front','penyakit/rjtl', $data);
	}
}
